import Cookies from 'js-cookie'

export default {
    get(name = 'default'){
        return Cookies.get(name);
    },
    getAll(){
        return Cookies.get();
    },
    set(name = 'default', value = '', cookieSetting?:any){
        let currentCookieSetting = {
            expires:1
        }
    
        Object.assign(currentCookieSetting, cookieSetting);
        Cookies.set(name, value, currentCookieSetting);
    },
    remove(name = 'default'){
        return Cookies.remove(name);

    }
};